<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
    <!ENTITY copy "&#169;">
    <!ENTITY nbsp "&#160;">
    <!ENTITY laquo "&#171;">
    <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">


  <xsl:include href="../layout.xsl"/>
  <xsl:include href="../list.xsl"/>

  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>

  <xsl:template match="content">
    <div class="content">      

      <H2>
        <xsl:value-of select="Main/Title" />
      </H2>
      <div class="path">
        <a href="/{Main/Controller}/edit/id/{Main/Card/id}">
          <xsl:value-of select="Main/Card/name_ru" />
        </a>
      </div>
      <TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
        <TBODY>
          <TR>
            <TD vAlign="top" width="100%">
              <xsl:call-template name="sidebar">
                <xsl:with-param name="node" select="/page/content/Menu/menu2"></xsl:with-param>
              </xsl:call-template>              
              <DIV>
                <xsl:choose>
                  <xsl:when test="/page/content/Menu/menu2">
                    <xsl:attribute name="class">content2</xsl:attribute>                    
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:attribute name="class">content</xsl:attribute>
                  </xsl:otherwise>
                </xsl:choose>
                <form method="post" name="form_action" id="form_action">
                 <TABLE>
                  <TBODY>                    
                    <TR>     
                      <TD vAlign="center">                    
                      
                      </TD>
                      <TD>
                        <DIV class="submit_10 submit">
                          <INPUT id="saveandback" onClick="javascript: window.location = '{Root}/{/page/settings/controller}/add/publishing/{Main/Card/id}';" type="button" value="Добавить" name="saveandback" style="font-weight: bold;" />
                        </DIV>
                      </TD>                      
                      <TD>
                      </TD>                      
                    </TR>
                  </TBODY>
                </TABLE>
                </form>
                 <xsl:apply-templates select="Main/List" />
              </DIV>
            </TD>
            <TD vAlign="top"></TD>
          </TR>
          <TR>
            <TD>&nbsp;</TD>
            <TD>&nbsp;</TD>
          </TR>
        </TBODY>
      </TABLE>     
    </div>
  </xsl:template>  
  
</xsl:stylesheet>